<template>
    <div>
        <p v-for="item in testArr" :key="item.id">{{ item.name }}</p>
    </div>
</template>

<script>
export default {
    data () {
        return {
            testArr: []
        }
    },
    mounted () {
        this.test()
    },
    methods: {
        test () {
            this.axios.get('http://192.168.0.133:3000/plain').then((res) => {
                console.log(res)
                if (res.data.code === 200) {
                    this.testArr = res.data.list
                }
            })
        },
    }
}
</script>

<style lang="" scoped>
</style>